<?php
namespace Cli\Controller;
use Think\Controller;

class CommonController extends Controller {
    protected $wechat;
    function _initialize() {
        //cli 模块禁止外部访问
        if (!isset($_SERVER['TERM']) &&  strtolower(__MODULE__) == 'cli') {
            header('HTTP/1.1 404 Not Found');
            header('status: 404 Not Found');
            return;
        }
    }
}
